package org.snia.server.model.meta;

import org.snia.cdmi.model.MetaContainer;

public class MetaContainerDirector {

	private MetaContainerBuilder builder;
	
	public MetaContainerDirector(MetaContainerBuilder builder){
		this.builder = builder;
	}
	
	public void construct(){
		this.builder.buildMetaBase();
		this.builder.buildMetaAcl();
		this.builder.buildUserMeta();
	}
	
	public static void main(String[] args) throws Exception {
		BaseMetaContainerBuilder builder = new BaseMetaContainerBuilder();
		MetaContainerDirector director = new MetaContainerDirector(builder);
		director.construct();
		MetaContainer meta = builder.getResult();
	}
}
